ergodic average